﻿using MiniExcelLibs.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ImportPlcPointPosition.Models.Dto
{
    public class ImportAlarmDictDto
    {
        /// <summary>
        /// 报警Id
        /// </summary>
        [ExcelColumnIndex("A")]
        public int AlarmId {  get; set; }

        [ExcelColumnIndex("B")]
        public string SignalAddress { get; set; }
        /// <summary>
        /// 报警代码
        /// </summary>
        [ExcelIgnore]
        public string AlarmCode { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [ExcelColumnIndex("C")]
        public string DeviceName { get; set; }

        [ExcelColumnIndex("D")]
        public string FaultCase { get; set; }

        [ExcelColumnIndex("O")]
        public string Solution { get; set; }
    }
    /// <summary>
    /// 氦检报警字典
    /// </summary>
    public class HCImportAlarmDictDto
    {
        /// <summary>
        /// 报警Id
        /// </summary>
        [ExcelColumnIndex("A")]
        public int AlarmId { get; set; }

        [ExcelColumnIndex("B")]
        public string SignalAddress { get; set; }
        /// <summary>
        /// 报警代码
        /// </summary>
        [ExcelIgnore]
        public string AlarmCode { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        [ExcelColumnIndex("C")]
        public string DeviceName { get; set; }
        /// <summary>
        /// 报警内容
        /// </summary>
        [ExcelColumnIndex("D")]
        public string FaultCase { get; set; }
        /// <summary>
        /// 解决办法
        /// </summary>
        [ExcelColumnIndex("F")]
        public string Solution { get; set; }
    }
}
